package day1.HomeWork;

public class Test10_ball {
        public static void playBall(Ball ball){
            ball.play();
        }
        public static void main(String[] args) {
            Ball b = new Ball();
            Ball b2 = new Basketball();
            Ball b3 = new Football();
            Test10_ball.playBall(b);
            Test10_ball.playBall(b2);
            Test10_ball.playBall(b3);
        }

}
